const cloud = require('@alipay/faas-server-sdk');
exports.main = async (event, context) => {
  console.log('car param:', event);
  const db = cloud.database();
  return await db
    .collection('mall_shop_car')
    .doc(event.id)
    .update({
      data: {
        number: event.number,
        done: true,
      },
    });

};